
package com.qianxun.module.datasource1.develop.mapper;

import com.qianxun.module.datasource1.develop.entity.SysFunctionRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author: admin
* @date: 2019-11-27
* @version: 1.0.0
*/
public interface SysFunctionRoleMapper extends BaseMapper<SysFunctionRole> {

    /**
     * 查询指定名称的角色
     * @param name
     * @return
     */
    SysFunctionRole selectLastOneByName(@Param(value = "name") String name);

    /**
     * 查询指定code列表的数据
     * @param codeList 编码列表
     * @return
     */
    List<SysFunctionRole> selectInCodeList(@Param(value = "codeList") List<String> codeList);

    /**
     * 查询指定用户的所有功能角色
     * @param userUuid 用户uuid标识
     * @return
     */
    List<SysFunctionRole> selectFunctionRoleByUserUuid(@Param(value = "userUuid") String userUuid);
}
